package com.cherrish.demo;

/**
 * @author cherrish
 * @time 2019-03-22 9:51
 * @name TestClassLoader
 * @desc:
 */
public class TestClassLoader {
    public static void main(String[] args) {
        try {
            System.out.println("TestClassLoader.getClass().getClassLoader(): " + TestClassLoader.class.getClassLoader());
            Class.forName("com.cherrish.demo.TestClassLoader", true, TestClassLoader.class.getClassLoader().getParent());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
